#include<iostream>

using namespace std;

template<typename T>
void Swap(T& x, T& y)
{
	T tmp = x;
	x = y;
	y = tmp;
}


int main()
{
	int x = 4;
	int y = 6;
	double i = 6.6;
	double j = 4.4;
	Swap(x, y);
	Swap(i, j);
	cout << x << " " << y << endl;
	cout << i << " " << j << endl;



	return 0;
}